package com.dream.house.entity;

import java.io.Serializable;

import cn.com.servyou.base.entity.BaseDTO;

/**
 * 退房信息为临时信息，当退房审核通过后<p>
 * 这些信息被清理，并把原有房信息更新为已入库
 * @author ahk
 * @since 1.0
 */
public class ReturnDTO extends BaseDTO implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private String return_id;//退房申请ID
	private String room_id;//房信息ID
	private String group_id;//部门ID
	private String group_name;//部门ID
	private String build_id;//楼信息ID
	
	private String return_name;//退房人姓名
	private String id_card;//身份证号
	private String comp_name;//工作单位全称
	private String mate_name;//配偶姓名
	private String mate_card;//配偶身份证
	private String mate_comp;//配偶单位
	
	private String price;//退房价格
	private String tfje;//退房金额
	private String zhglf;//综合管理费
	private String tfyj;//退房押金
	private String twhyj;//退未婚押金
	
	private String checker;// 审核人
	private String check_status;//审核状态：0-待审核，1-审核通过，9-未通过
	private String check_date;//审核日期
	
	private String create_user;//创建用户
	private String create_date;//创建日期
	private String modify_user;//
	private String modify_date;//
	
	private BuyDTO buy;
	private RentDTO rent;
	
	private RoomDTO room;
	private BuildDTO build;
	
	public String getGroup_name() {
		return group_name;
	}

	public void setGroup_name(String group_name) {
		this.group_name = group_name;
	}

	/**
	 * 记录类型：1-购房记录，0-租房记录
	 * @return
	 */
	public String getRecordType() {
		if(buy!=null && null!=buy.getRoom_id()){
			return "1";
		}
		if(rent!=null && rent.getRoom_id()!=null)
			return "0";
		
		return "";
	}

	public BuyDTO getBuy() {
		return buy;
	}

	public void setBuy(BuyDTO buy) {
		this.buy = buy;
	}

	public RentDTO getRent() {
		return rent;
	}

	public void setRent(RentDTO rent) {
		this.rent = rent;
	}

	public BuildDTO getBuild() {
		return build;
	}

	public void setBuild(BuildDTO build) {
		this.build = build;
	}

	public String getGroup_id() {
		return group_id;
	}

	public void setGroup_id(String group_id) {
		this.group_id = group_id;
	}

	public String getBuild_id() {
		return build_id;
	}

	public void setBuild_id(String build_id) {
		this.build_id = build_id;
	}

	public String getReturn_name() {
		return return_name;
	}

	public void setReturn_name(String return_name) {
		this.return_name = return_name;
	}

	public String getId_card() {
		return id_card;
	}

	public void setId_card(String id_card) {
		this.id_card = id_card;
	}

	public String getComp_name() {
		return comp_name;
	}

	public void setComp_name(String comp_name) {
		this.comp_name = comp_name;
	}

	public String getMate_name() {
		return mate_name;
	}

	public void setMate_name(String mate_name) {
		this.mate_name = mate_name;
	}

	public String getMate_card() {
		return mate_card;
	}

	public void setMate_card(String mate_card) {
		this.mate_card = mate_card;
	}

	public String getMate_comp() {
		return mate_comp;
	}

	public void setMate_comp(String mate_comp) {
		this.mate_comp = mate_comp;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getTfje() {
		return tfje;
	}

	public void setTfje(String tfje) {
		this.tfje = tfje;
	}

	public String getZhglf() {
		return zhglf;
	}

	public void setZhglf(String zhglf) {
		this.zhglf = zhglf;
	}

	public String getTfyj() {
		return tfyj;
	}

	public void setTfyj(String tfyj) {
		this.tfyj = tfyj;
	}

	public String getTwhyj() {
		return twhyj;
	}

	public void setTwhyj(String twhyj) {
		this.twhyj = twhyj;
	}

	public String getRoom_id() {
		return room_id;
	}

	public void setRoom_id(String room_id) {
		this.room_id = room_id;
	}

	public String getReturn_id() {
		return return_id;
	}

	public void setReturn_id(String return_id) {
		this.return_id = return_id;
	}

	public String getChecker() {
		return checker;
	}

	public void setChecker(String checker) {
		this.checker = checker;
	}

	public String getCheck_status() {
		return check_status;
	}

	public void setCheck_status(String check_status) {
		this.check_status = check_status;
	}

	public String getCheck_date() {
		return check_date;
	}

	public void setCheck_date(String check_date) {
		this.check_date = check_date;
	}

	public String getCreate_user() {
		return create_user;
	}

	public void setCreate_user(String create_user) {
		this.create_user = create_user;
	}

	public String getCreate_date() {
		return create_date;
	}

	public void setCreate_date(String create_date) {
		this.create_date = create_date;
	}

	public String getModify_user() {
		return modify_user;
	}

	public void setModify_user(String modify_user) {
		this.modify_user = modify_user;
	}

	public String getModify_date() {
		return modify_date;
	}

	public void setModify_date(String modify_date) {
		this.modify_date = modify_date;
	}

	public RoomDTO getRoom() {
		return room;
	}

	public void setRoom(RoomDTO room) {
		this.room = room;
	}
	
}
